﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Manyor.Net
{
    /// <summary>
    /// 基本配置
    /// </summary>
    public class NetConfig
    {
        #region -- 端口定义 --
        /// <summary>
        /// 服务器端口
        /// </summary>
        public const int PORT_SERVER = 4021;
        /// <summary>
        /// 本地端口
        /// </summary>
        public const int PORT_LOCAL = 4020;

        #endregion

        #region -- 数据包定义 --
        /// <summary>
        /// 缓冲区大小,计算公式:数据头+数据包内容大小
        /// </summary>
        public const int BUFFER_SIZE = 10080 + 32;
        /// <summary>
        /// 数据包头部大小
        /// 数据包格式:
        ///[0-31]数据头       
        /// </summary>
        public const int HEADER_SIZE = 32;
        /// <summary>
        /// 数据包内容大小
        /// </summary>
        public const int CONTENT_SIZE = 10080 ;

        #endregion
    }
}
